Skip to content

ext2fs: Drop EXT2FS_SYSTEM_FLAGS option and enforce its semantics#26

Closed
ricardobranco777 wants to merge 1 commit into
NetBSD:trunkfrom
ricardobranco777:ext2_flags
Closed

ext2fs: Drop EXT2FS_SYSTEM_FLAGS option and enforce its semantics#26
ricardobranco777 wants to merge 1 commit into
NetBSD:trunkfrom
ricardobranco777:ext2_flags

Conversation

@ricardobranco777

Copy link
Copy Markdown

On Linux, only root can set the immutable & append file flags. NetBSD should stick with those semantics.

The default behaviour is allowing the user to set the immutable/append flags, which is problematic for at least 2 reasons:

  1. The user setting the flag when only root should be allowed.
  2. When the user sets those flags, he cannot unset them later when running on Linux, FreeBSD (and perhaps other systems). Only root.

FreeBSD solved this issue already in 2009:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=122047

netbsd-srcmastr pushed a commit that referenced this pull request Sep 6, 2025
	external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.22

gas: vax: PIC: Use GOT for pointer for global function
in same file, instead of PLT

This fixes function-pointer comparison for shared libraries,
encountered in, e.g., many rump-based ATF cases. See

PR port-vax/59326 for more details.

Reported to upstream as:
https://sourceware.org/bugzilla/show_bug.cgi?id=32941
netbsd-srcmastr pushed a commit that referenced this pull request Sep 6, 2025
netbsd-srcmastr pushed a commit that referenced this pull request Apr 27, 2026
The upstream bcm2711.dtsi returns "brcm,bcm2836-smp" as "enable-method" on
/cpus node but bcm2711 requires different addresses from bcm2836.

Fixes early panic on Raspberry Pi 4B with earmv7hf MULITIPROCESSOR kernel:

---
[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] Fatal kernel mode prefetch abort at 0x00000000
[   1.0000000] trapframe: 0x80b73ee8, spsr=600001d3
[   1.0000000] r0 =00000000, r1 =f4000000, r2 =0000009c, r3 =01000380
[   1.0000000] r4 =00000000, r5 =807a0484, r6 =00000001, r7 =80a4b180
[   1.0000000] r8 =807a0470, r9 =805baab8, r10=807a0484, r11=80b73f54
[   1.0000000] r12=7f000000, ssp=80b73f38, slr=80011170, pc =00000000

Stopped in pid 0.0 (system) at  0:      address 0x0 is invalid
adchis  r3, r7, r4, lsr #26
db{0}>
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant