svn commit: r284445 - in head/sys/dev/cxgbe: . common
Author: np Date: Tue Jun 16 12:36:29 2015 New Revision: 284445 URL: https://svnweb.freebsd.org/changeset/base/284445 Log: cxgbe(4): Add the ability to dump mailbox commands and replies. It is enabled/disabled via bit 0 of adapter-debug_flags (which is available at dev.t5nex.n.debug_flags). MFC after:1 week Modified: head/sys/dev/cxgbe/adapter.h head/sys/dev/cxgbe/common/t4_hw.c head/sys/dev/cxgbe/t4_main.c Modified: head/sys/dev/cxgbe/adapter.h == --- head/sys/dev/cxgbe/adapter.hTue Jun 16 12:10:55 2015 (r28) +++ head/sys/dev/cxgbe/adapter.hTue Jun 16 12:36:29 2015 (r284445) @@ -206,6 +206,9 @@ enum { INTR_OFLD_RXQ = (1 5), /* All TOE rxq's take interrupts */ INTR_NM_RXQ = (1 6), /* All netmap rxq's take interrupts */ INTR_ALL= (INTR_RXQ | INTR_OFLD_RXQ | INTR_NM_RXQ), + + /* adapter debug_flags */ + DF_DUMP_MBOX= (1 0), }; #define IS_DOOMED(pi) ((pi)-flags DOOMED) @@ -762,6 +765,7 @@ struct adapter { int active_ulds;/* ULDs activated on this adapter */ #endif int flags; + int debug_flags; char ifp_lockname[16]; struct mtx ifp_lock; @@ -846,6 +850,24 @@ struct adapter { #define TXQ_LOCK_ASSERT_OWNED(txq) EQ_LOCK_ASSERT_OWNED((txq)-eq) #define TXQ_LOCK_ASSERT_NOTOWNED(txq) EQ_LOCK_ASSERT_NOTOWNED((txq)-eq) +#define CH_DUMP_MBOX(sc, mbox, data_reg) \ + do { \ + if (sc-debug_flags DF_DUMP_MBOX) { \ + log(LOG_NOTICE, \ + %s mbox %u: %016llx %016llx %016llx %016llx \ + %016llx %016llx %016llx %016llx\n, \ + device_get_nameunit(sc-dev), mbox, \ + (unsigned long long)t4_read_reg64(sc, data_reg), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 8), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 16), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 24), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 32), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 40), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 48), \ + (unsigned long long)t4_read_reg64(sc, data_reg + 56)); \ + } \ + } while (0) + #define for_each_txq(pi, iter, q) \ for (q = pi-adapter-sge.txq[pi-first_txq], iter = 0; \ iter pi-ntxq; ++iter, ++q) Modified: head/sys/dev/cxgbe/common/t4_hw.c == --- head/sys/dev/cxgbe/common/t4_hw.c Tue Jun 16 12:10:55 2015 (r28) +++ head/sys/dev/cxgbe/common/t4_hw.c Tue Jun 16 12:36:29 2015 (r284445) @@ -262,6 +262,8 @@ int t4_wr_mbox_meat(struct adapter *adap for (i = 0; i size; i += 8, p++) t4_write_reg64(adap, data_reg + i, be64_to_cpu(*p)); + CH_DUMP_MBOX(adap, mbox, data_reg); + t4_write_reg(adap, ctl_reg, F_MBMSGVALID | V_MBOWNER(X_MBOWNER_FW)); t4_read_reg(adap, ctl_reg); /* flush write */ @@ -287,6 +289,8 @@ int t4_wr_mbox_meat(struct adapter *adap continue; } + CH_DUMP_MBOX(adap, mbox, data_reg); + res = t4_read_reg64(adap, data_reg); if (G_FW_CMD_OP(res 32) == FW_DEBUG_CMD) { fw_asrt(adap, data_reg); Modified: head/sys/dev/cxgbe/t4_main.c == --- head/sys/dev/cxgbe/t4_main.cTue Jun 16 12:10:55 2015 (r28) +++ head/sys/dev/cxgbe/t4_main.cTue Jun 16 12:36:29 2015 (r284445) @@ -585,6 +585,9 @@ t4_attach(device_t dev) sc = device_get_softc(dev); sc-dev = dev; +#ifdef INVARIANTS + sc-debug_flags = DF_DUMP_MBOX; +#endif pci_enable_busmaster(dev); if (pci_find_cap(dev, PCIY_EXPRESS, i) == 0) { @@ -4603,6 +4606,9 @@ t4_sysctls(struct adapter *sc) SYSCTL_ADD_INT(ctx, children, OID_AUTO, lro_timeout, CTLFLAG_RW, sc-lro_timeout, 0, lro inactive-flush timeout (in us)); + SYSCTL_ADD_INT(ctx, children, OID_AUTO, debug_flags, CTLFLAG_RW, + sc-debug_flags, 0, flags to enable runtime debugging); + #ifdef SBUF_DRAIN /* * dev.t4nex.X.misc. Marked CTLFLAG_SKIP to avoid information overload. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284211 - in head/sys: kern sys
Mateusz, have you noticed this email? On Wed, Jun 10, 2015 at 06:44:45PM +0300, Gleb Smirnoff wrote: T On Wed, Jun 10, 2015 at 09:34:51AM +, Mateusz Guzik wrote: T M Author: mjg T M Date: Wed Jun 10 09:34:50 2015 T M New Revision: 284211 T M URL: https://svnweb.freebsd.org/changeset/base/284211 T M T M Log: T M fd: use atomics to manage fd_refcnt and fd_holcnt T M T M This gets rid of fdesc_mtx. T .. T M Modified: head/sys/sys/filedesc.h T M == T M --- head/sys/sys/filedesc.h Wed Jun 10 05:39:48 2015 (r284210) T M +++ head/sys/sys/filedesc.h Wed Jun 10 09:34:50 2015 (r284211) T M @@ -83,8 +83,8 @@ struct filedesc { T M int fd_lastfile;/* high-water mark of fd_ofiles */ T M int fd_freefile;/* approx. next free file */ T M u_short fd_cmask; /* mask for file creation */ T M - u_short fd_refcnt; /* thread reference count */ T M - u_short fd_holdcnt; /* hold count on structure + mutex */ T M + int fd_refcnt; /* thread reference count */ T M + int fd_holdcnt; /* hold count on structure + mutex */ T M struct sx fd_sx; /* protects members of this struct */ T M struct kqlist fd_kqlist; /* list of kqueues on this filedesc */ T M int fd_holdleaderscount;/* block fdfree() for shared close() */ T T Shouldn't they be volatile u_int? T T -- T Totus tuus, Glebius. T -- Totus tuus, Glebius. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284198 - head/bin/ls
On 15/06/2015 19:49, Warner Losh wrote: I’ve yet to see why ls —libxo is better than a separate program articulated anywhere other than libxo all the things.” Having a clear statement about why it is needed, why changing it vs having a separate program, etc would help. But is seems overly gratuitous with little benefit. +1, I don't see how libxo-ized ls(1) adds value. e.g. in Python, one can use pathlib and scandir to walk arbitrarily wide and deep hierarchies, much as 'file ... | xargs foo'. It has even (with hard work by koobs) supported FreeBSD's stat.st_flags since 2.3. So anything ls(1) can do, Python could do anyway. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284446 - in head/sys: compat/linux compat/svr4 fs/fdescfs i386/ibcs2 kern security/audit sys ufs/ffs
Author: mjg Date: Tue Jun 16 13:09:18 2015 New Revision: 284446 URL: https://svnweb.freebsd.org/changeset/base/284446 Log: Replace struct filedesc argument in getvnode with struct thread This is is a step towards removal of spurious arguments. Modified: head/sys/compat/linux/linux_file.c head/sys/compat/svr4/svr4_misc.c head/sys/fs/fdescfs/fdesc_vnops.c head/sys/i386/ibcs2/ibcs2_misc.c head/sys/kern/vfs_acl.c head/sys/kern/vfs_extattr.c head/sys/kern/vfs_syscalls.c head/sys/security/audit/audit_arg.c head/sys/sys/filedesc.h head/sys/ufs/ffs/ffs_alloc.c Modified: head/sys/compat/linux/linux_file.c == --- head/sys/compat/linux/linux_file.c Tue Jun 16 12:36:29 2015 (r284445) +++ head/sys/compat/linux/linux_file.c Tue Jun 16 13:09:18 2015 (r284446) @@ -348,8 +348,7 @@ getdents_common(struct thread *td, struc } else justone = 0; - error = getvnode(td-td_proc-p_fd, args-fd, - cap_rights_init(rights, CAP_READ), fp); + error = getvnode(td, args-fd, cap_rights_init(rights, CAP_READ), fp); if (error != 0) return (error); Modified: head/sys/compat/svr4/svr4_misc.c == --- head/sys/compat/svr4/svr4_misc.cTue Jun 16 12:36:29 2015 (r284445) +++ head/sys/compat/svr4/svr4_misc.cTue Jun 16 13:09:18 2015 (r284446) @@ -262,8 +262,7 @@ svr4_sys_getdents64(td, uap) DPRINTF((svr4_sys_getdents64(%d, *, %d)\n, uap-fd, uap-nbytes)); - error = getvnode(td-td_proc-p_fd, uap-fd, - cap_rights_init(rights, CAP_READ), fp); + error = getvnode(td, uap-fd, cap_rights_init(rights, CAP_READ), fp); if (error != 0) return (error); @@ -442,8 +441,7 @@ svr4_sys_getdents(td, uap) if (uap-nbytes 0) return (EINVAL); - error = getvnode(td-td_proc-p_fd, uap-fd, - cap_rights_init(rights, CAP_READ), fp); + error = getvnode(td, uap-fd, cap_rights_init(rights, CAP_READ), fp); if (error != 0) return (error); @@ -623,7 +621,6 @@ svr4_sys_fchroot(td, uap) struct svr4_sys_fchroot_args *uap; { cap_rights_t rights; - struct filedesc *fdp = td-td_proc-p_fd; struct vnode*vp; struct file *fp; int error; @@ -631,7 +628,7 @@ svr4_sys_fchroot(td, uap) if ((error = priv_check(td, PRIV_VFS_FCHROOT)) != 0) return error; /* XXX: we have the chroot priv... what cap might we need? all? */ - if ((error = getvnode(fdp, uap-fd, cap_rights_init(rights), fp)) != 0) + if ((error = getvnode(td, uap-fd, cap_rights_init(rights), fp)) != 0) return error; vp = fp-f_vnode; VREF(vp); Modified: head/sys/fs/fdescfs/fdesc_vnops.c == --- head/sys/fs/fdescfs/fdesc_vnops.c Tue Jun 16 12:36:29 2015 (r284445) +++ head/sys/fs/fdescfs/fdesc_vnops.c Tue Jun 16 13:09:18 2015 (r284446) @@ -482,7 +482,7 @@ fdesc_setattr(ap) /* * Allow setattr where there is an underlying vnode. */ - error = getvnode(td-td_proc-p_fd, fd, + error = getvnode(td, fd, cap_rights_init(rights, CAP_EXTATTR_SET), fp); if (error) { /* Modified: head/sys/i386/ibcs2/ibcs2_misc.c == --- head/sys/i386/ibcs2/ibcs2_misc.cTue Jun 16 12:36:29 2015 (r284445) +++ head/sys/i386/ibcs2/ibcs2_misc.cTue Jun 16 13:09:18 2015 (r284446) @@ -342,8 +342,7 @@ ibcs2_getdents(td, uap) #defineBSD_DIRENT(cp) ((struct dirent *)(cp)) #defineIBCS2_RECLEN(reclen)(reclen + sizeof(u_short)) - error = getvnode(td-td_proc-p_fd, uap-fd, - cap_rights_init(rights, CAP_READ), fp); + error = getvnode(td, uap-fd, cap_rights_init(rights, CAP_READ), fp); if (error != 0) return (error); if ((fp-f_flag FREAD) == 0) { @@ -498,8 +497,7 @@ ibcs2_read(td, uap) u_long *cookies = NULL, *cookiep; int ncookies; - error = getvnode(td-td_proc-p_fd, uap-fd, - cap_rights_init(rights, CAP_READ), fp); + error = getvnode(td, uap-fd, cap_rights_init(rights, CAP_READ), fp); if (error != 0) { if (error == EINVAL) return sys_read(td, (struct read_args *)uap); Modified: head/sys/kern/vfs_acl.c == --- head/sys/kern/vfs_acl.c Tue Jun 16 12:36:29 2015(r284445) +++ head/sys/kern/vfs_acl.c Tue Jun 16 13:09:18 2015(r284446) @@ -406,7 +406,7 @@ sys___acl_get_fd(struct
svn commit: r284447 - head/sys/dev/mii
Author: marius Date: Tue Jun 16 13:27:06 2015 New Revision: 284447 URL: https://svnweb.freebsd.org/changeset/base/284447 Log: Merge from NetBSD: o rev. 1.10: Nuke trailing whitespace. o rev. 1.15: Fix typo in comment. o rev. 1.16: Add the following registers from IEEE 802.3-2009 Clause 22: - PSE control register (0x0b) - PSE status register (0x0c) - MMD access control register (0x0d) - MMD access address data register (0x0e) o rev. 1.17 (comments only): The bit location of link ability is different between 1000Base-X and others (see Annex 28B.2 and 28D). o rev. 1.18: Nuke dupe word. Obtained from:NetBSD MFC after:1 week Sponsored by: genua mbh Modified: head/sys/dev/mii/mii.h Modified: head/sys/dev/mii/mii.h == --- head/sys/dev/mii/mii.h Tue Jun 16 13:09:18 2015(r284446) +++ head/sys/dev/mii/mii.h Tue Jun 16 13:27:06 2015(r284447) @@ -1,4 +1,4 @@ -/* $NetBSD: mii.h,v 1.9 2001/05/31 03:07:14 thorpej Exp $ */ +/* $NetBSD: mii.h,v 1.18 2014/06/16 14:43:22 msaitoh Exp $ */ /*- * Copyright (c) 1997 Manuel Bouyer. All rights reserved. @@ -87,7 +87,7 @@ /* * Note that the EXTSTAT bit indicates that there is extended status * info available in register 15, but 802.3 section 22.2.4.3 also - * states that that all 1000 Mb/s capable PHYs will set this bit to 1. + * states that all 1000 Mb/s capable PHYs will set this bit to 1. */ #defineBMSR_MEDIAMASK (BMSR_100T4|BMSR_100TXFDX|BMSR_100TXHDX| \ @@ -111,6 +111,7 @@ #define ANAR_NP0x8000 /* Next page (ro) */ #defineANAR_ACK0x4000 /* link partner abilities acknowledged (ro) */ #define ANAR_RF0x2000 /* remote fault (ro) */ + /* Annex 28B.2 */ #defineANAR_FC 0x0400 /* local device supports PAUSE */ #define ANAR_T40x0200 /* local device supports 100bT4 */ #define ANAR_TX_FD 0x0100 /* local device supports 100bTx FD */ @@ -123,6 +124,7 @@ #defineANAR_PAUSE_ASYM (2 10) #defineANAR_PAUSE_TOWARDS (3 10) + /* Annex 28D */ #defineANAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ #defineANAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ #defineANAR_X_PAUSE_NONE (0 7) @@ -184,12 +186,47 @@ #defineGTSR_MAN_MS_FLT 0x8000 /* master/slave config fault */ #defineGTSR_MS_RES 0x4000 /* result: 1 = master, 0 = slave */ #defineGTSR_LRS0x2000 /* local rx status, 1 = ok */ -#defineGTSR_RRS0x1000 /* remove rx status, 1 = ok */ +#defineGTSR_RRS0x1000 /* remote rx status, 1 = ok */ #defineGTSR_LP_1000TFDX 0x0800 /* link partner 1000baseT FDX capable */ #defineGTSR_LP_1000THDX 0x0400 /* link partner 1000baseT HDX capable */ #defineGTSR_LP_ASM_DIR 0x0200 /* link partner asym. pause dir. capable */ #defineGTSR_IDLE_ERR 0x00ff /* IDLE error count */ +#defineMII_PSECR 0x0b/* PSE control register */ +#definePSECR_PACTLMASK 0x000c /* pair control mask */ +#definePSECR_PSEENMASK 0x0003 /* PSE enable mask */ +#definePSECR_PINOUTB 0x0008 /* PSE pinout Alternative B */ +#definePSECR_PINOUTA 0x0004 /* PSE pinout Alternative A */ +#definePSECR_FOPOWTST 0x0002 /* Force Power Test Mode */ +#definePSECR_PSEEN 0x0001 /* PSE Enabled */ +#definePSECR_PSEDIS0x /* PSE Disabled */ + +#defineMII_PSESR 0x0c/* PSE status register */ +#definePSESR_PWRDENIED 0x1000 /* Power Denied */ +#definePSESR_VALSIG0x0800 /* Valid PD signature detected */ +#definePSESR_INVALSIG 0x0400 /* Inalid PD signature detected */ +#definePSESR_SHORTCIRC 0x0200 /* Short circuit condition detected */ +#definePSESR_OVERLOAD 0x0100 /* Overload condition detected */ +#definePSESR_MPSABSENT 0x0080 /* MPS absent condition detected */ +#definePSESR_PDCLMASK 0x0070 /* PD Class mask */ +#definePSESR_STATMASK 0x000e /* PSE Status mask */ +#definePSESR_PAIRCTABL 0x0001 /* PAIR Control Ability */ +#definePSESR_PDCL_4(4 4)/* Class 4 */ +#definePSESR_PDCL_3(3 4)/* Class 3 */ +#definePSESR_PDCL_2(2 4)/* Class 2 */ +#definePSESR_PDCL_1(1 4)/* Class 1 */ +#definePSESR_PDCL_0(0 4)/* Class 0 */ + +#defineMII_MMDACR 0x0d/* MMD access control register */ +#defineMMDACR_FUNCMASK 0xc000 /* function */ +#defineMMDACR_DADDRMASK 0x001f /* device address */ +#defineMMDACR_FN_ADDRESS (0 14) /* address */ +#defineMMDACR_FN_DATANPI (1 14) /*
Re: svn commit: r284198 - head/bin/ls
On 15/06/2015 5:19 AM, Garrett Cooper wrote: Next time someone else converts ANYTHING to libxo -- write tests FIRST to make sure you're not breaking legacy behavior. If you need help figuring out how to do that, I'll be more than happy to document it on a wiki page, with simple, concise directions. Please do so anyway, these kinds of things are great (simple) ways for people inside and outside the project to start contributing to. *Then* perhaps we can hook in some code coverage checks into our CI, publish the numbers and go from there. Koobs ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284450 - head/sys/dev/atkbdc
Author: glebius Date: Tue Jun 16 15:39:34 2015 New Revision: 284450 URL: https://svnweb.freebsd.org/changeset/base/284450 Log: Fix miss from r284320. Coverity: 1018895 Modified: head/sys/dev/atkbdc/psm.c Modified: head/sys/dev/atkbdc/psm.c == --- head/sys/dev/atkbdc/psm.c Tue Jun 16 15:14:40 2015(r284449) +++ head/sys/dev/atkbdc/psm.c Tue Jun 16 15:39:34 2015(r284450) @@ -5102,7 +5102,7 @@ enable_trackpoint(struct psm_softc *sc, id = read_aux_data(kbdc); if (id 0x01) return (FALSE); - if (sc != NULL) + if (arg == PROBE) sc-tphw = id; if (!trackpoint_support) return (FALSE); ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284449 - head/sys/arm/arm
Author: bz Date: Tue Jun 16 15:14:40 2015 New Revision: 284449 URL: https://svnweb.freebsd.org/changeset/base/284449 Log: Trying to unbreak arm.LINT by properly putting the conditional include for dtrace further down in the include list where it belongs. Reviewed by: andrew Modified: head/sys/arm/arm/trap.c Modified: head/sys/arm/arm/trap.c == --- head/sys/arm/arm/trap.c Tue Jun 16 13:56:16 2015(r284448) +++ head/sys/arm/arm/trap.c Tue Jun 16 15:14:40 2015(r284449) @@ -78,10 +78,6 @@ * Created : 28/11/94 */ -#ifdef KDTRACE_HOOKS -#include sys/dtrace_bsd.h -#endif - #include sys/cdefs.h __FBSDID($FreeBSD$); @@ -109,6 +105,10 @@ __FBSDID($FreeBSD$); #include sys/kdb.h #endif +#ifdef KDTRACE_HOOKS +#include sys/dtrace_bsd.h +#endif + extern char fusubailout[]; #ifdef DEBUG ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284451 - head/lib/libc/arm/aeabi
Author: andrew Date: Tue Jun 16 16:40:25 2015 New Revision: 284451 URL: https://svnweb.freebsd.org/changeset/base/284451 Log: Export the ARM __aeabi_mem* functions from libc, they are needed by the gcc from ports as it doesn't include these in the copy of libgcc it installs uses. Obtained from:ABT Systems Ltd Modified: head/lib/libc/arm/aeabi/Makefile.inc head/lib/libc/arm/aeabi/Symbol.map Modified: head/lib/libc/arm/aeabi/Makefile.inc == --- head/lib/libc/arm/aeabi/Makefile.incTue Jun 16 15:39:34 2015 (r284450) +++ head/lib/libc/arm/aeabi/Makefile.incTue Jun 16 16:40:25 2015 (r284451) @@ -27,13 +27,5 @@ SRCS+= aeabi_memcmp.S \ aeabi_memmove.S \ aeabi_memset.S -# Mark the functions as hidden so they are not available outside of libc. -CFLAGS.aeabi_memcmp.S= -DVISIBILITY_HIDDEN -CFLAGS.aeabi_memcpy.S= -DVISIBILITY_HIDDEN -CFLAGS.aeabi_memmove.S=-DVISIBILITY_HIDDEN -CFLAGS.aeabi_memset.S= -DVISIBILITY_HIDDEN -CFLAGS+= ${CFLAGS.${.IMPSRC:T}} - - SYM_MAPS+=${LIBC_SRCTOP}/arm/aeabi/Symbol.map Modified: head/lib/libc/arm/aeabi/Symbol.map == --- head/lib/libc/arm/aeabi/Symbol.map Tue Jun 16 15:39:34 2015 (r284450) +++ head/lib/libc/arm/aeabi/Symbol.map Tue Jun 16 16:40:25 2015 (r284451) @@ -52,4 +52,21 @@ FBSDprivate_1.0 { __aeabi_i2d; __aeabi_i2f; + + + __aeabi_memclr; + __aeabi_memclr4; + __aeabi_memclr8; + __aeabi_memcmp; + __aeabi_memcmp4; + __aeabi_memcmp8; + __aeabi_memcpy; + __aeabi_memcpy4; + __aeabi_memcpy8; + __aeabi_memmove; + __aeabi_memmove4; + __aeabi_memmove8; + __aeabi_memset; + __aeabi_memset4; + __aeabi_memset8; }; ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284454 - head
Author: imp Date: Tue Jun 16 17:55:20 2015 New Revision: 284454 URL: https://svnweb.freebsd.org/changeset/base/284454 Log: A more compatible fix to MK_META_MODE not being defined. Also, encase bmake specific constructs not needed for make bootstrap so fmake doesn't see them. This works with fmake just well enough for us to build bmake to build the rest of the tree without fatal errors. Tested only with fmake package. Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 17:27:53 2015(r284453) +++ head/Makefile Tue Jun 16 17:55:20 2015(r284454) @@ -99,7 +99,10 @@ # # For more information, see the build(7) manual page. # -.if ${MK_META_MODE:Uno} == yes + +# Note: we use this awkward construct to be compatible with FreeBSD's +# old make used in 10.0 and 9.2 and earlier. +.if defined(MK_META_MODE) ${MK_META_MODE} == yes # targets/Makefile plays the role of top-level .include targets/Makefile .else @@ -522,6 +525,7 @@ universe_epilogue: buildLINT: ${MAKE} -C ${.CURDIR}/sys/${_TARGET}/conf LINT +.if defined(.PARSEDIR) # This makefile does not run in meta mode .MAKE.MODE= normal # Normally the things we run from here don't either. @@ -539,5 +543,6 @@ UPDATE_DEPENDFILE= NO MAKE_JOB_ERROR_TOKEN= no .export MAKE_JOB_ERROR_TOKEN .endif +.endif # bmake .endif # META_MODE ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284453 - head
Author: andrew Date: Tue Jun 16 17:27:53 2015 New Revision: 284453 URL: https://svnweb.freebsd.org/changeset/base/284453 Log: Add a comment to the end of the world and kernel cases in the universe target to help follow the make magic. Obtained from:ABT Systems Ltd Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 17:24:20 2015(r284452) +++ head/Makefile Tue Jun 16 17:27:53 2015(r284453) @@ -450,7 +450,8 @@ universe_${target}_${target_arch}: unive ${MAKEFAIL})) @echo ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date` .endfor -.endif +.endif # !MAKE_JUST_KERNELS + .if !defined(MAKE_JUST_WORLDS) # If we are building world and kernels wait for the required worlds to finish .if !defined(MAKE_JUST_KERNELS) @@ -468,7 +469,7 @@ universe_${target}_kernels: universe_${t .endif @cd ${.CURDIR} ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \ universe_kernels -.endif +.endif # !MAKE_JUST_WORLDS @echo ${target} completed on `LC_ALL=C date` .endfor universe_kernels: universe_kernconfs ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284456 - head
Author: andrew Date: Tue Jun 16 18:43:08 2015 New Revision: 284456 URL: https://svnweb.freebsd.org/changeset/base/284456 Log: Add a universe_${target}_worlds target to simplify the logic to find when to start building kernels. Obtained from:ABT Systems Ltd Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 18:39:11 2015(r284455) +++ head/Makefile Tue Jun 16 18:43:08 2015(r284456) @@ -438,9 +438,12 @@ universe_epilogue: universe_${target} universe_${target}: universe_${target}_prologue universe_${target}_prologue: universe_prologue @echo ${target} started on `LC_ALL=C date` +universe_${target}_worlds: + .if !defined(MAKE_JUST_KERNELS) .for target_arch in ${TARGET_ARCHES_${target}} universe_${target}: universe_${target}_${target_arch} +universe_${target}_worlds: universe_${target}_${target_arch} universe_${target}_${target_arch}: universe_${target}_prologue .MAKE @echo ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date` @(cd ${.CURDIR} env __MAKE_CONF=/dev/null \ @@ -456,13 +459,8 @@ universe_${target}_${target_arch}: unive .endif # !MAKE_JUST_KERNELS .if !defined(MAKE_JUST_WORLDS) -# If we are building world and kernels wait for the required worlds to finish -.if !defined(MAKE_JUST_KERNELS) -.for target_arch in ${TARGET_ARCHES_${target}} -universe_${target}_kernels: universe_${target}_${target_arch} -.endfor -.endif universe_${target}: universe_${target}_kernels +universe_${target}_kernels: universe_${target}_worlds universe_${target}_kernels: universe_${target}_prologue .MAKE .if exists(${KERNSRCDIR}/${target}/conf/NOTES) @(cd ${KERNSRCDIR}/${target}/conf env __MAKE_CONF=/dev/null \ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284469 - head
Author: andrew Date: Tue Jun 16 21:11:31 2015 New Revision: 284469 URL: https://svnweb.freebsd.org/changeset/base/284469 Log: Remove unneeded dependencies, these are now handled through the _done target. Obtained from:ABT Systems Ltd Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 21:08:25 2015(r284468) +++ head/Makefile Tue Jun 16 21:11:31 2015(r284469) @@ -442,7 +442,6 @@ universe_${target}_worlds: .if !defined(MAKE_JUST_KERNELS) .for target_arch in ${TARGET_ARCHES_${target}} -universe_${target}: universe_${target}_${target_arch} universe_${target}_worlds: universe_${target}_${target_arch} universe_${target}_done: universe_${target}_worlds universe_${target}_${target_arch}: universe_${target}_prologue .MAKE @@ -460,7 +459,6 @@ universe_${target}_${target_arch}: unive .endif # !MAKE_JUST_KERNELS .if !defined(MAKE_JUST_WORLDS) -universe_${target}: universe_${target}_kernels universe_${target}_done: universe_${target}_kernels universe_${target}_kernels: universe_${target}_worlds universe_${target}_kernels: universe_${target}_prologue .MAKE ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284470 - head/sys/dev/bxe
Author: davidcs Date: Tue Jun 16 21:11:32 2015 New Revision: 284470 URL: https://svnweb.freebsd.org/changeset/base/284470 Log: In bxe_init_mcast_macs_list(): mc_mac-mac needs to point to the multicast mac address In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK() In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING Submitted by:gary.zambr...@qlogic.com Modified: head/sys/dev/bxe/bxe.c head/sys/dev/bxe/ecore_sp.c Modified: head/sys/dev/bxe/bxe.c == --- head/sys/dev/bxe/bxe.c Tue Jun 16 21:11:31 2015(r284469) +++ head/sys/dev/bxe/bxe.c Tue Jun 16 21:11:32 2015(r284470) @@ -12525,6 +12525,7 @@ bxe_init_mcast_macs_list(struct bxe_soft BLOGE(sc, Failed to allocate temp mcast list\n); return (-1); } +bzero(mta, (sizeof(unsigned char) * ETHER_ADDR_LEN * mc_count)); mc_mac = malloc(sizeof(*mc_mac) * mc_count, M_DEVBUF, (M_NOWAIT | M_ZERO)); @@ -12533,12 +12534,13 @@ bxe_init_mcast_macs_list(struct bxe_soft BLOGE(sc, Failed to allocate temp mcast list\n); return (-1); } +bzero(mc_mac, (sizeof(*mc_mac) * mc_count)); if_multiaddr_array(ifp, mta, mcnt, mc_count); /* mta and mcnt not expected to be different */ for(i=0; i mcnt; i++) { -bcopy((mta + (i * ETHER_ADDR_LEN)), mc_mac-mac, ETHER_ADDR_LEN); + mc_mac-mac = (uint8_t *)(mta + (i * ETHER_ADDR_LEN)); ECORE_LIST_PUSH_TAIL(mc_mac-link, p-mcast_list); BLOGD(sc, DBG_LOAD, @@ -12583,6 +12585,7 @@ bxe_set_mc_list(struct bxe_softc *sc) rc = ecore_config_mcast(sc, rparam, ECORE_MCAST_CMD_DEL); if (rc 0) { BLOGE(sc, Failed to clear multicast configuration: %d\n, rc); +BXE_MCAST_UNLOCK(sc); return (rc); } Modified: head/sys/dev/bxe/ecore_sp.c == --- head/sys/dev/bxe/ecore_sp.c Tue Jun 16 21:11:31 2015(r284469) +++ head/sys/dev/bxe/ecore_sp.c Tue Jun 16 21:11:32 2015(r284470) @@ -474,7 +474,7 @@ static void __ecore_vlan_mac_h_exec_pend o-head_exe_request = FALSE; o-saved_ramrod_flags = 0; rc = ecore_exe_queue_step(sc, o-exe_queue, ramrod_flags); - if (rc != ECORE_SUCCESS) { + if ((rc != ECORE_SUCCESS) (rc != ECORE_PENDING)) { ECORE_ERR(execution of pending commands failed with rc %d\n, rc); #ifdef ECORE_STOP_ON_ERROR ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284436 - head/contrib/sendmail/src
On Tue, 2015-06-16 at 02:58 +, Gregory Neil Shapiro wrote: Author: gshapiro Date: Tue Jun 16 02:58:50 2015 New Revision: 284436 URL: https://svnweb.freebsd.org/changeset/base/284436 Log: The import of openssl to address the FreeBSD-SA-15:10.openssl security advisory includes a change which rejects handshakes with DH parameters below 768 bits. sendmail releases prior to 8.15.2 (not yet released), defaulted to a 512 bit DH parameter setting for client connections. This commit chages that default to 1024 bits. sendmail 8.15.2, when released well use a default of 2048 bits. If upstream will be using 2048 bits, why not simply use that? -- Shawn Webb HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE signature.asc Description: This is a digitally signed message part
svn commit: r284452 - head/sys/arm/arm
Author: andrew Date: Tue Jun 16 17:24:20 2015 New Revision: 284452 URL: https://svnweb.freebsd.org/changeset/base/284452 Log: Write to the PRRR (Primary Region Remap Register) rather than reading from it during the early boot. Found By: Patrick Wildt patr...@bitrig.org Sponsored by: ABT Systems Ltd Modified: head/sys/arm/arm/locore-v6.S Modified: head/sys/arm/arm/locore-v6.S == --- head/sys/arm/arm/locore-v6.STue Jun 16 16:40:25 2015 (r284451) +++ head/sys/arm/arm/locore-v6.STue Jun 16 17:24:20 2015 (r284452) @@ -240,7 +240,7 @@ ASENTRY_NP(init_mmu) * - All is set to uncacheable memory */ ldr r0, =0xA - mrc CP15_PRRR(r0) + mcr CP15_PRRR(r0) mov r0, #0 mcr CP15_NMRR(r0) #endif ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284471 - head
Author: andrew Date: Tue Jun 16 21:29:46 2015 New Revision: 284471 URL: https://svnweb.freebsd.org/changeset/base/284471 Log: Move the universe done dependency on the worlds completing out of the loop, we only need to add it once. Obtained from:ABT Systems Ltd Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 21:11:32 2015(r284470) +++ head/Makefile Tue Jun 16 21:29:46 2015(r284471) @@ -441,9 +441,9 @@ universe_${target}_prologue: universe_pr universe_${target}_worlds: .if !defined(MAKE_JUST_KERNELS) +universe_${target}_done: universe_${target}_worlds .for target_arch in ${TARGET_ARCHES_${target}} universe_${target}_worlds: universe_${target}_${target_arch} -universe_${target}_done: universe_${target}_worlds universe_${target}_${target_arch}: universe_${target}_prologue .MAKE @echo ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date` @(cd ${.CURDIR} env __MAKE_CONF=/dev/null \ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284474 - head/usr.sbin/syslogd
Author: rpaulo Date: Tue Jun 16 22:26:22 2015 New Revision: 284474 URL: https://svnweb.freebsd.org/changeset/base/284474 Log: syslogd: support multiple -b options. It's now possible to bind multiple sockets to different IP addresses. PR: 159305 Submitted by: Kurt Lidl lidl pix.net Sponsored by: Pi-Coral, Inc. Modified: head/usr.sbin/syslogd/syslogd.8 head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.8 == --- head/usr.sbin/syslogd/syslogd.8 Tue Jun 16 22:25:08 2015 (r284473) +++ head/usr.sbin/syslogd/syslogd.8 Tue Jun 16 22:26:22 2015 (r284474) @@ -28,7 +28,7 @@ .\ @(#)syslogd.8 8.1 (Berkeley) 6/6/93 .\ $FreeBSD$ .\ -.Dd March 3, 2015 +.Dd June 16, 2015 .Dt SYSLOGD 8 .Os .Sh NAME @@ -194,6 +194,8 @@ The default .Ar service is .Ql syslog . +This option can be specified multiple times to bind to +multiple addresses and/or ports. .It Fl C Create log files that do not exist (permission is set to .Li 0600 ) . Modified: head/usr.sbin/syslogd/syslogd.c == --- head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:25:08 2015 (r284473) +++ head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:26:22 2015 (r284474) @@ -124,6 +124,15 @@ const char ctty[] = _PATH_CONSOLE; #defineMAXUNAMES 20 /* maximum number of user names */ /* + * List of hosts for binding. + */ +static STAILQ_HEAD(, host) hqueue; +struct host { + char*name; + STAILQ_ENTRY(host) next; +}; + +/* * Unix sockets. * We have two default sockets, one with 666 permissions, * and one for privileged programs. @@ -275,7 +284,7 @@ static int Foreground = 0; /* Run in for static int resolve = 1;/* resolve hostname */ static charLocalHostName[MAXHOSTNAMELEN]; /* our hostname */ static const char *LocalDomain;/* our local domain name */ -static int *finet; /* Internet datagram socket */ +static int *finet; /* Internet datagram sockets */ static int fklog = -1; /* /dev/klog */ static int Initialized;/* set when we have initialized ourselves */ static int MarkInterval = 20 * 60; /* interval between marks in seconds */ @@ -348,10 +357,10 @@ main(int argc, char *argv[]) struct sockaddr_storage frominet; fd_set *fdsr = NULL; char line[MAXLINE + 1]; - char *bindhostname; const char *hname; struct timeval tv, *tvp; struct sigaction sact; + struct host *host; struct funix *fx, *fx1; sigset_t mask; pid_t ppid = 1, spid; @@ -360,7 +369,8 @@ main(int argc, char *argv[]) if (madvise(NULL, 0, MADV_PROTECT) != 0) dprintf(madvise() failed: %s\n, strerror(errno)); - bindhostname = NULL; + STAILQ_INIT(hqueue); + while ((ch = getopt(argc, argv, 468Aa:b:cCdf:Fkl:m:nNop:P:sS:Tuv)) != -1) switch (ch) { @@ -383,8 +393,13 @@ main(int argc, char *argv[]) usage(); break; case 'b': - bindhostname = optarg; + { + if ((host = malloc(sizeof(struct host))) == NULL) + err(1, malloc failed); + host-name = optarg; + STAILQ_INSERT_TAIL(hqueue, host, next); break; + } case 'c': no_compress++; break; @@ -433,7 +448,7 @@ main(int argc, char *argv[]) if (strlen(name) = sizeof(sunx.sun_path)) errx(1, %s path too long, exiting, name); if ((fx = malloc(sizeof(struct funix))) == NULL) - errx(1, malloc failed); + err(1, malloc failed); fx-s = -1; fx-name = name; fx-mode = mode; @@ -555,8 +570,26 @@ main(int argc, char *argv[]) } increase_rcvbuf(fx-s); } - if (SecureMode = 1) - finet = socksetup(family, bindhostname); + if (SecureMode = 1) { + if (STAILQ_EMPTY(hqueue)) + finet = socksetup(family, NULL); + STAILQ_FOREACH(host, hqueue, next) { + int *finet0, total; + finet0 = socksetup(family, host-name); + if (finet0 !finet) { + finet = finet0; + } else if (finet0 finet) { + total = *finet0 + *finet + 1; + finet = realloc(finet, total * sizeof(int)); +
svn commit: r284464 - in head: . share/mk usr.bin usr.bin/make
Author: imp Date: Tue Jun 16 20:58:33 2015 New Revision: 284464 URL: https://svnweb.freebsd.org/changeset/base/284464 Log: Remove old fmake. It wasn't built by default for some time. Users that really need it can find it in the devel/fmake port or pkg install fmake. Note: This commit is orthogonal to the question 'can we fmake buildworld'. Differential Revision: https://reviews.freebsd.org/D2840 Deleted: head/usr.bin/make/ Modified: head/UPDATING head/share/mk/src.opts.mk head/usr.bin/Makefile Modified: head/UPDATING == --- head/UPDATING Tue Jun 16 20:34:39 2015(r284463) +++ head/UPDATING Tue Jun 16 20:58:33 2015(r284464) @@ -31,6 +31,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11 disable the most expensive debugging functionality run ln -s 'abort:false,junk:false' /etc/malloc.conf.) +20150616: + FreeBSD's old make (fmake) has been removed from the system. It is + available as the devel/fmake port or via pkg install fmake. + 20150615: The fix for the issue described in the 20150614 sendmail entry below has been been committed in revision 284436. The work Modified: head/share/mk/src.opts.mk == --- head/share/mk/src.opts.mk Tue Jun 16 20:34:39 2015(r284463) +++ head/share/mk/src.opts.mk Tue Jun 16 20:58:33 2015(r284464) @@ -179,7 +179,6 @@ __DEFAULT_NO_OPTIONS = \ BSD_GREP \ CLANG_EXTRAS \ EISA \ -FMAKE \ HESIOD \ LLDB \ NAND \ Modified: head/usr.bin/Makefile == --- head/usr.bin/Makefile Tue Jun 16 20:34:39 2015(r284463) +++ head/usr.bin/Makefile Tue Jun 16 20:58:33 2015(r284464) @@ -253,10 +253,6 @@ SUBDIR+= file SUBDIR+= finger .endif -.if ${MK_FMAKE} != no -SUBDIR+= make -.endif - .if ${MK_FTP} != no SUBDIR+= ftp .endif ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284457 - head
Author: andrew Date: Tue Jun 16 19:23:34 2015 New Revision: 284457 URL: https://svnweb.freebsd.org/changeset/base/284457 Log: Add a new target universe_${target}_done to print the completion message. Without this we could print this message in the wrong place when building with MAKE_JUST_WORLDS is set. Obtained from:ABT Systems Ltd Modified: head/Makefile Modified: head/Makefile == --- head/Makefile Tue Jun 16 18:43:08 2015(r284456) +++ head/Makefile Tue Jun 16 19:23:34 2015(r284457) @@ -444,6 +444,7 @@ universe_${target}_worlds: .for target_arch in ${TARGET_ARCHES_${target}} universe_${target}: universe_${target}_${target_arch} universe_${target}_worlds: universe_${target}_${target_arch} +universe_${target}_done: universe_${target}_worlds universe_${target}_${target_arch}: universe_${target}_prologue .MAKE @echo ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date` @(cd ${.CURDIR} env __MAKE_CONF=/dev/null \ @@ -460,6 +461,7 @@ universe_${target}_${target_arch}: unive .if !defined(MAKE_JUST_WORLDS) universe_${target}: universe_${target}_kernels +universe_${target}_done: universe_${target}_kernels universe_${target}_kernels: universe_${target}_worlds universe_${target}_kernels: universe_${target}_prologue .MAKE .if exists(${KERNSRCDIR}/${target}/conf/NOTES) @@ -471,6 +473,10 @@ universe_${target}_kernels: universe_${t @cd ${.CURDIR} ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \ universe_kernels .endif # !MAKE_JUST_WORLDS + +# Tell the user the worlds and kernels have completed +universe_${target}: universe_${target}_done +universe_${target}_done: @echo ${target} completed on `LC_ALL=C date` .endfor universe_kernels: universe_kernconfs ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284462 - head/sys/kern
Author: pfg Date: Tue Jun 16 20:19:00 2015 New Revision: 284462 URL: https://svnweb.freebsd.org/changeset/base/284462 Log: Use nitems() macro instead of __arraycount() Modified: head/sys/kern/stack_protector.c Modified: head/sys/kern/stack_protector.c == --- head/sys/kern/stack_protector.c Tue Jun 16 20:01:01 2015 (r284461) +++ head/sys/kern/stack_protector.c Tue Jun 16 20:19:00 2015 (r284462) @@ -17,15 +17,14 @@ __stack_chk_fail(void) panic(stack overflow detected; backtrace may be corrupted); } -#define __arraycount(__x) (sizeof(__x) / sizeof(__x[0])) static void __stack_chk_init(void *dummy __unused) { size_t i; - long guard[__arraycount(__stack_chk_guard)]; + long guard[nitems(__stack_chk_guard)]; arc4rand(guard, sizeof(guard), 0); - for (i = 0; i __arraycount(guard); i++) + for (i = 0; i nitems(guard); i++) __stack_chk_guard[i] = guard[i]; } SYSINIT(stack_chk, SI_SUB_RANDOM, SI_ORDER_ANY, __stack_chk_init, NULL); ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284475 - head/usr.sbin/syslogd
Author: rpaulo Date: Tue Jun 16 22:31:38 2015 New Revision: 284475 URL: https://svnweb.freebsd.org/changeset/base/284475 Log: syslogd: don't leak finet0. Submitted by: Kurt Lidl lidl pix.net Sponsored by: Pi-Coral, Inc. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c == --- head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:26:22 2015 (r284474) +++ head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:31:38 2015 (r284475) @@ -587,6 +587,7 @@ main(int argc, char *argv[]) finet[(*finet)+i] = finet0[i]; } *finet = total - 1; + free(finet0); } } } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284478 - head/share/mk
Author: sjg Date: Tue Jun 16 23:06:43 2015 New Revision: 284478 URL: https://svnweb.freebsd.org/changeset/base/284478 Log: Normally a staging conflict causes an error. When bootstrapping different options, it is handy to be able to make those warnings. Modified: head/share/mk/meta.stage.mk Modified: head/share/mk/meta.stage.mk == --- head/share/mk/meta.stage.mk Tue Jun 16 23:03:15 2015(r284477) +++ head/share/mk/meta.stage.mk Tue Jun 16 23:06:43 2015(r284478) @@ -60,14 +60,23 @@ LN_CP_SCRIPT = LnCp() { \ ln $$1 $$2 2 /dev/null || \ cp -p $$1 $$2; } +# a staging conflict should cause an error +# a warning is handy when bootstapping different options. +STAGE_CONFLICT?= ERROR +.if ${STAGE_CONFLICT:tl} == error +STAGE_CONFLICT_ACTION= exit 1; +.else +STAGE_CONFLICT_ACTION= +.endif + # it is an error for more than one src dir to try and stage # the same file STAGE_DIRDEP_SCRIPT = ${LN_CP_SCRIPT}; StageDirdep() { \ t=$$1; \ if [ -s $$t.dirdep ]; then \ cmp -s .dirdep $$t.dirdep return; \ - echo ERROR: $$t installed by `cat $$t.dirdep` not ${_dirdep} 2; \ - exit 1; \ + echo ${STAGE_CONFLICT}: $$t installed by `cat $$t.dirdep` not ${_dirdep} 2; \ + ${STAGE_CONFLICT_ACTION} \ fi; \ LnCp .dirdep $$t.dirdep || exit 1; } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284481 - in head: bin/cat bin/ls gnu/lib/libgcc gnu/usr.bin/binutils/as gnu/usr.bin/binutils/ld gnu/usr.bin/binutils/libbinutils include kerberos5/lib/libasn1 kerberos5/lib/libheimbase...
Author: sjg Date: Tue Jun 16 23:37:19 2015 New Revision: 284481 URL: https://svnweb.freebsd.org/changeset/base/284481 Log: new depends Added: head/lib/clang/liblldb/Makefile.depend (contents, props changed) head/lib/clang/liblldbAPI/Makefile.depend (contents, props changed) head/lib/clang/liblldbBreakpoint/Makefile.depend (contents, props changed) head/lib/clang/liblldbCommands/Makefile.depend (contents, props changed) head/lib/clang/liblldbCore/Makefile.depend (contents, props changed) head/lib/clang/liblldbDataFormatters/Makefile.depend (contents, props changed) head/lib/clang/liblldbExpression/Makefile.depend (contents, props changed) head/lib/clang/liblldbHostCommon/Makefile.depend (contents, props changed) head/lib/clang/liblldbHostFreeBSD/Makefile.depend (contents, props changed) head/lib/clang/liblldbHostPOSIX/Makefile.depend (contents, props changed) head/lib/clang/liblldbInterpreter/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginABISysV_ppc/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginABISysV_ppc64/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginABISysV_x86_64/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginCXXItaniumABI/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginDisassemblerLLVM/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginDynamicLoaderPosixDYLD/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginDynamicLoaderStatic/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginInstructionARM/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginInstructionARM64/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginInstrumentationRuntimeAddressSanitizer/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginJITLoaderGDB/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginMemoryHistoryASan/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginObjectContainerBSDArchive/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginObjectFileELF/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginObjectFileJIT/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginPlatformFreeBSD/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginPlatformGDB/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginProcessElfCore/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginProcessFreeBSD/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginProcessGDBRemote/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginProcessPOSIX/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginProcessUtility/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginSymbolFileDWARF/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginSymbolFileSymtab/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginSymbolVendorELF/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginUnwindAssemblyInstEmulation/Makefile.depend (contents, props changed) head/lib/clang/liblldbPluginUnwindAssemblyX86/Makefile.depend (contents, props changed) head/lib/clang/liblldbSymbol/Makefile.depend (contents, props changed) head/lib/clang/liblldbTarget/Makefile.depend (contents, props changed) head/lib/clang/liblldbUtility/Makefile.depend (contents, props changed) head/usr.bin/addr2line/Makefile.depend (contents, props changed) head/usr.bin/clang/lldb/Makefile.depend (contents, props changed) head/usr.bin/nm/Makefile.depend (contents, props changed) head/usr.bin/readelf/Makefile.depend (contents, props changed) head/usr.bin/size/Makefile.depend (contents, props changed) head/usr.bin/strings/Makefile.depend (contents, props changed) Modified: head/bin/cat/Makefile.depend head/bin/ls/Makefile.depend head/gnu/lib/libgcc/Makefile.depend head/gnu/usr.bin/binutils/as/Makefile.depend head/gnu/usr.bin/binutils/ld/Makefile.depend.amd64 head/gnu/usr.bin/binutils/libbinutils/Makefile.depend head/include/Makefile.depend head/kerberos5/lib/libasn1/Makefile.depend head/kerberos5/lib/libheimbase/Makefile.depend head/kerberos5/lib/libheimipcc/Makefile.depend head/kerberos5/lib/libhx509/Makefile.depend head/kerberos5/lib/libkrb5/Makefile.depend head/kerberos5/lib/libroken/Makefile.depend head/kerberos5/lib/libwind/Makefile.depend head/lib/clang/libllvmexecutionengine/Makefile.depend head/lib/clang/libllvmmcdisassembler/Makefile.depend head/lib/clang/libllvmmcjit/Makefile.depend head/lib/clang/libllvmruntimedyld/Makefile.depend head/lib/libbegemot/Makefile.depend
svn commit: r284480 - head/gnu/lib/libgcc
Author: sjg Date: Tue Jun 16 23:36:20 2015 New Revision: 284480 URL: https://svnweb.freebsd.org/changeset/base/284480 Log: Hook extra libs to _LIBS so bsd.lib.mk can do its thing Differential Revision:D2843 Reviewed by: imp Modified: head/gnu/lib/libgcc/Makefile Modified: head/gnu/lib/libgcc/Makefile == --- head/gnu/lib/libgcc/MakefileTue Jun 16 23:32:28 2015 (r284479) +++ head/gnu/lib/libgcc/MakefileTue Jun 16 23:36:20 2015 (r284480) @@ -338,7 +338,7 @@ libgcc_eh.a:${EH_OBJS_T} @${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_T} | tsort -q` ${RANLIB} ${RANLIBFLAGS} ${.TARGET} -all: libgcc_eh.a +_LIBS+= libgcc_eh.a .if ${MK_PROFILE} != no libgcc_eh_p.a: ${EH_OBJS_P} @@ -346,7 +346,8 @@ libgcc_eh_p.a: ${EH_OBJS_P} @rm -f ${.TARGET} @${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_P} | tsort -q` ${RANLIB} ${RANLIBFLAGS} ${.TARGET} -all: libgcc_eh_p.a + +_LIBS+= libgcc_eh_p.a .endif _libinstall: _lib-eh-install ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284479 - head
Author: sjg Date: Tue Jun 16 23:32:28 2015 New Revision: 284479 URL: https://svnweb.freebsd.org/changeset/base/284479 Log: Make mention of make.conf being included earlier and what to do about it. Reviewed by: NGie Modified: head/UPDATING Modified: head/UPDATING == --- head/UPDATING Tue Jun 16 23:06:43 2015(r284478) +++ head/UPDATING Tue Jun 16 23:32:28 2015(r284479) @@ -32,6 +32,23 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11 ln -s 'abort:false,junk:false' /etc/malloc.conf.) 20150616: + /etc/make.conf now included earlier. + sys.mk now includes /etc/make.conf and {local,src}.sys.mk earlier + than previously. + This makes it simple to interpose external toolchains etc. + However it may cause problems for users who have things like:: + + INSTALL+= something + + in /etc/make.conf, since INSTALL is not yet defined. + A safe fix for that is to have:: + + INSTALL?= install + INSTALL+= something + + which is equivalent to previous behavior. + +20150616: FreeBSD's old make (fmake) has been removed from the system. It is available as the devel/fmake port or via pkg install fmake. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284482 - in head/targets/pseudo: clang toolchain userland/gnu
Author: sjg Date: Tue Jun 16 23:38:44 2015 New Revision: 284482 URL: https://svnweb.freebsd.org/changeset/base/284482 Log: Support WITH_LLDB Remove entries from userland/gnu that conflict with toolchain Modified: head/targets/pseudo/clang/Makefile.depend head/targets/pseudo/toolchain/Makefile.depend head/targets/pseudo/userland/gnu/Makefile.depend Modified: head/targets/pseudo/clang/Makefile.depend == --- head/targets/pseudo/clang/Makefile.depend Tue Jun 16 23:37:19 2015 (r284481) +++ head/targets/pseudo/clang/Makefile.depend Tue Jun 16 23:38:44 2015 (r284482) @@ -2,6 +2,10 @@ # This file is not autogenerated - take care! +.if !defined(MK_LLDB) +.include src.opts.mk +.endif + DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} DIRDEPS = \ @@ -11,5 +15,9 @@ DIRDEPS = \ usr.bin/clang/clang-tblgen \ usr.bin/clang/tblgen \ +.if ${MK_LLDB} == yes +DIRDEPS+= \ + usr.bin/clang/lldb +.endif .include dirdeps.mk Modified: head/targets/pseudo/toolchain/Makefile.depend == --- head/targets/pseudo/toolchain/Makefile.depend Tue Jun 16 23:37:19 2015(r284481) +++ head/targets/pseudo/toolchain/Makefile.depend Tue Jun 16 23:38:44 2015(r284482) @@ -31,7 +31,7 @@ DIRDEPS+= \ .endif -DIRDEPS= \ +DIRDEPS+= \ usr.bin/xinstall \ gnu/usr.bin/binutils/ar \ gnu/usr.bin/binutils/as \ Modified: head/targets/pseudo/userland/gnu/Makefile.depend == --- head/targets/pseudo/userland/gnu/Makefile.dependTue Jun 16 23:37:19 2015(r284481) +++ head/targets/pseudo/userland/gnu/Makefile.dependTue Jun 16 23:38:44 2015(r284482) @@ -16,7 +16,6 @@ DIRDEPS = \ gnu/lib/libssp/libssp_nonshared \ gnu/lib/libstdc++ \ gnu/lib/libsupc++ \ - gnu/usr.bin/binutils/addr2line \ gnu/usr.bin/binutils/ar \ gnu/usr.bin/binutils/as \ gnu/usr.bin/binutils/doc \ @@ -25,14 +24,9 @@ DIRDEPS = \ gnu/usr.bin/binutils/libbinutils \ gnu/usr.bin/binutils/libiberty \ gnu/usr.bin/binutils/libopcodes \ - gnu/usr.bin/binutils/nm \ gnu/usr.bin/binutils/objcopy \ gnu/usr.bin/binutils/objdump \ gnu/usr.bin/binutils/ranlib \ - gnu/usr.bin/binutils/readelf \ - gnu/usr.bin/binutils/size \ - gnu/usr.bin/binutils/strings \ - gnu/usr.bin/binutils/strip \ gnu/usr.bin/dialog \ gnu/usr.bin/diff/doc \ gnu/usr.bin/diff3 \ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284476 - head/usr.sbin/syslogd
Author: rpaulo Date: Tue Jun 16 22:42:19 2015 New Revision: 284476 URL: https://svnweb.freebsd.org/changeset/base/284476 Log: syslogd: re-read the timezone when receive a SIGHUP. syslogd already re-reads the configuration file and the hostname when receiving a SIGHUP, so it makes sense to reset the timezone. Special care was taken to ensure we don't break installations running with a custom TZ variable. PR: 196905 Submitted by: Kurt Lidl lidl pix.net Sponsored by: Pi-Coral, Inc. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c == --- head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:31:38 2015 (r284475) +++ head/usr.sbin/syslogd/syslogd.c Tue Jun 16 22:42:19 2015 (r284476) @@ -1603,6 +1603,24 @@ init(int signo) } /* +* Load / reload timezone data (in case it changed). +* +* Just calling tzset() again does not work, the timezone code +* caches the result. However, by setting the TZ variable, one +* can defeat the caching and have the timezone code really +* reload the timezone data. Respect any initial setting of +* TZ, in case the system is configured specially. +*/ + dprintf(loading timezone data via tzset()\n); + if (getenv(TZ)) { + tzset(); + } else { + setenv(TZ, :/etc/localtime, 1); + tzset(); + unsetenv(TZ); + } + + /* * Close all open log files. */ Initialized = 0; ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284477 - head/sys/dev/filemon
Author: sjg Date: Tue Jun 16 23:03:15 2015 New Revision: 284477 URL: https://svnweb.freebsd.org/changeset/base/284477 Log: Bump the version since we now handle openat Modified: head/sys/dev/filemon/filemon.h Modified: head/sys/dev/filemon/filemon.h == --- head/sys/dev/filemon/filemon.h Tue Jun 16 22:42:19 2015 (r284476) +++ head/sys/dev/filemon/filemon.h Tue Jun 16 23:03:15 2015 (r284477) @@ -30,5 +30,5 @@ #define FILEMON_SET_FD _IOWR('S', 1, int) #define FILEMON_SET_PID_IOWR('S', 2, pid_t) -#define FILEMON_VERSION4 /* output format +#define FILEMON_VERSION5 /* output format (bump when adding record types) */ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284494 - head/bin/ls
Author: kan Date: Wed Jun 17 04:26:48 2015 New Revision: 284494 URL: https://svnweb.freebsd.org/changeset/base/284494 Log: Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''. File names are in current locale as well. Modified: head/bin/ls/print.c Modified: head/bin/ls/print.c == --- head/bin/ls/print.c Wed Jun 17 04:18:30 2015(r284493) +++ head/bin/ls/print.c Wed Jun 17 04:26:48 2015(r284494) @@ -178,7 +178,7 @@ printlong(const DISPLAY *dp) sp = p-fts_statp; name = getname(p-fts_name); if (name) - xo_emit({ke:name}, name); + xo_emit({ke:name/%hs}, name); if (f_inode) xo_emit({:inode/%*ju} , dp-s_inode, (uintmax_t)sp-st_ino); @@ -214,7 +214,7 @@ printlong(const DISPLAY *dp) #endif if (name) { - xo_emit({dk:name}, name); + xo_emit({dk:name/%hs}, name); free(name); } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284495 - in head/sys: kern ufs/ffs
Author: kib Date: Wed Jun 17 04:46:58 2015 New Revision: 284495 URL: https://svnweb.freebsd.org/changeset/base/284495 Log: vfs_msync(), called from syncer vnode fsync VOP, only iterates over the active vnode list for the given mount point, with the assumption that vnodes with dirty pages are active. This is enforced by vinactive() doing vm_object_page_clean() pass over the vnode pages. The issue is, if vinactive() cannot be called during vput() due to the vnode being only shared-locked, we might end up with the dirty pages for the vnode on the free list. Such vnode is invisible to syncer, and pages are only cleaned on the vnode reactivation. In other words, the race results in the broken guarantee that user data, written through the mmap(2), is written to the disk not later than in 30 seconds after the write. Fix this by keeping the vnode which is freed but still owing inactivation, on the active list. When syncer loops find such vnode, it is deactivated and cleaned by the final vput() call. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/kern/vfs_subr.c head/sys/ufs/ffs/ffs_vfsops.c Modified: head/sys/kern/vfs_subr.c == --- head/sys/kern/vfs_subr.cWed Jun 17 04:26:48 2015(r284494) +++ head/sys/kern/vfs_subr.cWed Jun 17 04:46:58 2015(r284495) @@ -173,6 +173,11 @@ static int reassignbufcalls; SYSCTL_INT(_vfs, OID_AUTO, reassignbufcalls, CTLFLAG_RW, reassignbufcalls, 0, Number of calls to reassignbuf); +static u_long free_owe_inact; +SYSCTL_ULONG(_vfs, OID_AUTO, free_owe_inact, CTLFLAG_RD, free_owe_inact, 0, +Number of times free vnodes kept on active list due to VFS +owing inactivation); + /* * Cache for the mount type id assigned to NFS. This is used for * special checks in nfs/nfs_nqlease.c and vm/vnode_pager.c. @@ -2368,11 +2373,8 @@ vholdl(struct vnode *vp) CTR2(KTR_VFS, %s: vp %p, __func__, vp); #ifdef INVARIANTS /* getnewvnode() calls v_incr_usecount() without holding interlock. */ - if (vp-v_type != VNON || vp-v_data != NULL) { + if (vp-v_type != VNON || vp-v_data != NULL) ASSERT_VI_LOCKED(vp, vholdl); - VNASSERT(vp-v_holdcnt 0 || (vp-v_iflag VI_FREE) != 0, - vp, (vholdl: free vnode is held)); - } #endif vp-v_holdcnt++; if ((vp-v_iflag VI_FREE) == 0) @@ -2443,23 +2445,29 @@ vdropl(struct vnode *vp) VNASSERT(vp-v_holdcnt == 0, vp, (vdropl: freeing when we shouldn't)); active = vp-v_iflag VI_ACTIVE; - vp-v_iflag = ~VI_ACTIVE; - mp = vp-v_mount; - mtx_lock(vnode_free_list_mtx); - if (active) { - TAILQ_REMOVE(mp-mnt_activevnodelist, vp, - v_actfreelist); - mp-mnt_activevnodelistsize--; - } - if (vp-v_iflag VI_AGE) { - TAILQ_INSERT_HEAD(vnode_free_list, vp, v_actfreelist); + if ((vp-v_iflag VI_OWEINACT) == 0) { + vp-v_iflag = ~VI_ACTIVE; + mp = vp-v_mount; + mtx_lock(vnode_free_list_mtx); + if (active) { + TAILQ_REMOVE(mp-mnt_activevnodelist, vp, + v_actfreelist); + mp-mnt_activevnodelistsize--; + } + if (vp-v_iflag VI_AGE) { + TAILQ_INSERT_HEAD(vnode_free_list, vp, + v_actfreelist); + } else { + TAILQ_INSERT_TAIL(vnode_free_list, vp, + v_actfreelist); + } + freevnodes++; + vp-v_iflag = ~VI_AGE; + vp-v_iflag |= VI_FREE; + mtx_unlock(vnode_free_list_mtx); } else { - TAILQ_INSERT_TAIL(vnode_free_list, vp, v_actfreelist); + atomic_add_long(free_owe_inact, 1); } - freevnodes++; - vp-v_iflag = ~VI_AGE; - vp-v_iflag |= VI_FREE; - mtx_unlock(vnode_free_list_mtx); VI_UNLOCK(vp); return; } Modified: head/sys/ufs/ffs/ffs_vfsops.c == --- head/sys/ufs/ffs/ffs_vfsops.c Wed Jun 17 04:26:48 2015 (r284494) +++ head/sys/ufs/ffs/ffs_vfsops.c Wed Jun 17 04:46:58 2015 (r284495) @@ -1410,6 +1410,14 @@ ffs_statfs(mp, sbp) return (0); } +static bool +sync_doupdate(struct inode *ip) +{ + + return
Re: svn commit: r284494 - head/bin/ls
On 17.06.2015 7:26, Alexander Kabaev wrote: Author: kan Date: Wed Jun 17 04:26:48 2015 New Revision: 284494 URL: https://svnweb.freebsd.org/changeset/base/284494 Log: Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''. File names are in current locale as well. Thanx, fixed now. Modified: head/bin/ls/print.c Modified: head/bin/ls/print.c == --- head/bin/ls/print.c Wed Jun 17 04:18:30 2015(r284493) +++ head/bin/ls/print.c Wed Jun 17 04:26:48 2015(r284494) @@ -178,7 +178,7 @@ printlong(const DISPLAY *dp) sp = p-fts_statp; name = getname(p-fts_name); if (name) - xo_emit({ke:name}, name); + xo_emit({ke:name/%hs}, name); if (f_inode) xo_emit({:inode/%*ju} , dp-s_inode, (uintmax_t)sp-st_ino); @@ -214,7 +214,7 @@ printlong(const DISPLAY *dp) #endif if (name) { - xo_emit({dk:name}, name); + xo_emit({dk:name/%hs}, name); free(name); } -- http://ache.vniz.net/ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284489 - head/bin/ls
On Tue, 16 Jun 2015 20:24:07 -0700 Marcel Moolenaar mar...@xcllnt.net wrote: On Jun 16, 2015, at 8:15 PM, Andrey Chernov a...@freebsd.org wrote: On 17.06.2015 6:12, Marcel Moolenaar wrote: Author: marcel Date: Wed Jun 17 03:12:08 2015 New Revision: 284489 URL: https://svnweb.freebsd.org/changeset/base/284489 Log: Unbreak ``env LANG=ru_RU.KOI8-R ls -l''. Time strings are in the current locale. Thanx, but the same treatment should be for file names too: they are in the current locale. ls -l drops them otherwise. filenames are already printed with the h attribute, so something else may be wrong. -- Marcel Moolenaar mar...@xcllnt.net No, not in ls -l. You need this in printlong: - xo_emit({ke:name}, name); + xo_emit({ke:name/%hs}, name) - xo_emit({dk:name}, name); + xo_emit({dk:name/%hs}, name); -- Alexander Kabaev pgpLIhePiAmRE.pgp Description: OpenPGP digital signature
svn commit: r284486 - head/usr.bin/calendar/calendars
Author: acm (ports committer) Date: Wed Jun 17 02:43:20 2015 New Revision: 284486 URL: https://svnweb.freebsd.org/changeset/base/284486 Log: - Add acm@ entry Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd == --- head/usr.bin/calendar/calendars/calendar.freebsdWed Jun 17 02:39:10 2015(r284485) +++ head/usr.bin/calendar/calendars/calendar.freebsdWed Jun 17 02:43:20 2015(r284486) @@ -199,6 +199,7 @@ 06/06 Alan Eldridge al...@freebsd.org died in Denver, Colorado, 2003 06/07 Jimmy Olgeni olg...@freebsd.org born in Milano, Italy, 1976 06/07 Benjamin Close ben...@freebsd.org born in Adelaide, Australia, 1978 +06/11 Alonso Cardenas Marquez a...@freebsd.org born in Arequipa, Peru, 1979 06/14 Josh Paetzel jpaet...@freebsd.org born in Minneapolis, Minnesota, United States, 1973 06/17 Tilman Linneweh ar...@freebsd.org born in Weinheim, Baden-Wuerttemberg, Germany, 1978 06/18 Li-Wen Hsu lw...@freebsd.org born in Taipei, Taiwan, Republic of China, 1984 ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284489 - head/bin/ls
Author: marcel Date: Wed Jun 17 03:12:08 2015 New Revision: 284489 URL: https://svnweb.freebsd.org/changeset/base/284489 Log: Unbreak ``env LANG=ru_RU.KOI8-R ls -l''. Time strings are in the current locale. Modified: head/bin/ls/print.c Modified: head/bin/ls/print.c == --- head/bin/ls/print.c Wed Jun 17 03:11:25 2015(r284488) +++ head/bin/ls/print.c Wed Jun 17 03:12:08 2015(r284489) @@ -425,7 +425,7 @@ printtime(const char *field, time_t ftim format = d_first ? %e %b %Y : %b %e %Y; strftime(longstring, sizeof(longstring), format, localtime(ftime)); - snprintf(fmt, sizeof(fmt), {:%s/%%s} , field); + snprintf(fmt, sizeof(fmt), {:%s/%%hs} , field); xo_attr(value, %ld, (long) ftime); xo_emit(fmt, longstring); } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284489 - head/bin/ls
On 17.06.2015 6:12, Marcel Moolenaar wrote: Author: marcel Date: Wed Jun 17 03:12:08 2015 New Revision: 284489 URL: https://svnweb.freebsd.org/changeset/base/284489 Log: Unbreak ``env LANG=ru_RU.KOI8-R ls -l''. Time strings are in the current locale. Thanx, but the same treatment should be for file names too: they are in the current locale. ls -l drops them otherwise. Modified: head/bin/ls/print.c Modified: head/bin/ls/print.c == --- head/bin/ls/print.c Wed Jun 17 03:11:25 2015(r284488) +++ head/bin/ls/print.c Wed Jun 17 03:12:08 2015(r284489) @@ -425,7 +425,7 @@ printtime(const char *field, time_t ftim format = d_first ? %e %b %Y : %b %e %Y; strftime(longstring, sizeof(longstring), format, localtime(ftime)); - snprintf(fmt, sizeof(fmt), {:%s/%%s} , field); + snprintf(fmt, sizeof(fmt), {:%s/%%hs} , field); xo_attr(value, %ld, (long) ftime); xo_emit(fmt, longstring); } -- http://ache.vniz.net/ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284489 - head/bin/ls
On Jun 16, 2015, at 8:15 PM, Andrey Chernov a...@freebsd.org wrote: On 17.06.2015 6:12, Marcel Moolenaar wrote: Author: marcel Date: Wed Jun 17 03:12:08 2015 New Revision: 284489 URL: https://svnweb.freebsd.org/changeset/base/284489 Log: Unbreak ``env LANG=ru_RU.KOI8-R ls -l''. Time strings are in the current locale. Thanx, but the same treatment should be for file names too: they are in the current locale. ls -l drops them otherwise. filenames are already printed with the h attribute, so something else may be wrong. -- Marcel Moolenaar mar...@xcllnt.net signature.asc Description: Message signed with OpenPGP using GPGMail
svn commit: r284483 - head/secure/lib/libcrypt
Author: allanjude (doc committer) Date: Tue Jun 16 23:57:29 2015 New Revision: 284483 URL: https://svnweb.freebsd.org/changeset/base/284483 Log: Add compatibility with $2y$ bcrypt hashes crypt_blowfish and many implementations based on it (Apache, PHP, PostgreSQL) implemented $2y$ before OpenBSD went with $2b$. This changes marks them as equivalent. http://www.openwall.com/lists/announce/2011/07/17/1 This change is required for applications that use the base crypt() implementation (including nginx) to be able to validate $2y$ hashes Reviewed by: eadler Approved by: delphij MFC after:1 week Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision:https://reviews.freebsd.org/D2742 Modified: head/secure/lib/libcrypt/crypt-blowfish.c Modified: head/secure/lib/libcrypt/crypt-blowfish.c == --- head/secure/lib/libcrypt/crypt-blowfish.c Tue Jun 16 23:38:44 2015 (r284482) +++ head/secure/lib/libcrypt/crypt-blowfish.c Tue Jun 16 23:57:29 2015 (r284483) @@ -167,6 +167,9 @@ crypt_blowfish(const char *key, const ch switch (salt[1]) { case 'a': /* 'ab' should not yield the same as 'abab' */ case 'b': /* cap input length at 72 bytes */ +case 'y': /* same as 'b', for compatibility +* with openwall crypt_blowfish +*/ minr = salt[1]; salt++; break; ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284436 - head/contrib/sendmail/src
This commit chages that default to 1024 bits. sendmail 8.15.2, when released well use a default of 2048 bits. If upstream will be using 2048 bits, why not simply use that? The upstream is going to do this with a precomputed 2048 bit DH parameter. To keep this interim fix simple and not a performance degradation, I went with a run-time generated 1024 bit. Sites which wish to use 2048 run time can override the default in their configuration. Likewise, when 8.15.2 is imported, sites that prefer not to use a precomputed DH parameter can create their own by overriding the default to use a run-time or their own precomputed (but unique) using a DH parameter file on the local file system. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r284425 - head/usr.sbin/freebsd-update
On Mon, Jun 15, 2015 at 08:12:15PM +, Xin LI wrote: Author: delphij Date: Mon Jun 15 20:12:15 2015 New Revision: 284425 URL: https://svnweb.freebsd.org/changeset/base/284425 Log: Skip src component if /usr/src is empty. Submitted by: kczekirda I can't find anyone with that freebsd login id. If it's a non-committer, please use a real name or email address, or at least something that doesn't look like a freebsd login id. -- Joel ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284442 - head/sys/kern
Author: mjg Date: Tue Jun 16 09:08:30 2015 New Revision: 284442 URL: https://svnweb.freebsd.org/changeset/base/284442 Log: fd: don't unnecessary copy capabilities in _fget Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c == --- head/sys/kern/kern_descrip.cTue Jun 16 08:36:57 2015 (r284441) +++ head/sys/kern/kern_descrip.cTue Jun 16 09:08:30 2015 (r284442) @@ -2433,11 +2433,9 @@ _fget(struct thread *td, int fd, struct *fpp = NULL; fdp = td-td_proc-p_fd; - if (needrightsp != NULL) - needrights = *needrightsp; - else - cap_rights_init(needrights); - error = fget_unlocked(fdp, fd, needrights, fp, seqp); + if (needrightsp == NULL) + needrightsp = cap_rights_init(needrights); + error = fget_unlocked(fdp, fd, needrightsp, fp, seqp); if (error != 0) return (error); if (fp-f_ops == badfileops) { ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r284443 - in head/sys: compat/svr4 kern ofed/include/linux security/audit
Author: mjg Date: Tue Jun 16 09:52:36 2015 New Revision: 284443 URL: https://svnweb.freebsd.org/changeset/base/284443 Log: fd: make rights a mandatory argument to fget_unlocked Modified: head/sys/compat/svr4/svr4_misc.c head/sys/kern/kern_descrip.c head/sys/ofed/include/linux/file.h head/sys/security/audit/audit_arg.c Modified: head/sys/compat/svr4/svr4_misc.c == --- head/sys/compat/svr4/svr4_misc.cTue Jun 16 09:08:30 2015 (r284442) +++ head/sys/compat/svr4/svr4_misc.cTue Jun 16 09:52:36 2015 (r284443) @@ -622,6 +622,7 @@ svr4_sys_fchroot(td, uap) struct thread *td; struct svr4_sys_fchroot_args *uap; { + cap_rights_t rights; struct filedesc *fdp = td-td_proc-p_fd; struct vnode*vp; struct file *fp; @@ -630,7 +631,7 @@ svr4_sys_fchroot(td, uap) if ((error = priv_check(td, PRIV_VFS_FCHROOT)) != 0) return error; /* XXX: we have the chroot priv... what cap might we need? all? */ - if ((error = getvnode(fdp, uap-fd, 0, fp)) != 0) + if ((error = getvnode(fdp, uap-fd, cap_rights_init(rights), fp)) != 0) return error; vp = fp-f_vnode; VREF(vp); Modified: head/sys/kern/kern_descrip.c == --- head/sys/kern/kern_descrip.cTue Jun 16 09:08:30 2015 (r284442) +++ head/sys/kern/kern_descrip.cTue Jun 16 09:52:36 2015 (r284443) @@ -746,7 +746,8 @@ kern_fcntl(struct thread *td, int fd, in arg = arg ? 128 * 1024: 0; /* FALLTHROUGH */ case F_READAHEAD: - error = fget_unlocked(fdp, fd, NULL, fp, NULL); + error = fget_unlocked(fdp, fd, + cap_rights_init(rights), fp, NULL); if (error != 0) break; if (fp-f_type != DTYPE_VNODE) { @@ -2368,11 +2369,9 @@ fget_unlocked(struct filedesc *fdp, int if (fp == NULL) return (EBADF); #ifdef CAPABILITIES - if (needrightsp != NULL) { - error = cap_check(haverights, needrightsp); - if (error != 0) - return (error); - } + error = cap_check(haverights, needrightsp); + if (error != 0) + return (error); #endif retry: count = fp-f_count; Modified: head/sys/ofed/include/linux/file.h == --- head/sys/ofed/include/linux/file.h Tue Jun 16 09:08:30 2015 (r284442) +++ head/sys/ofed/include/linux/file.h Tue Jun 16 09:52:36 2015 (r284443) @@ -33,6 +33,7 @@ #include sys/file.h #include sys/filedesc.h #include sys/refcount.h +#include sys/capsicum.h #include sys/proc.h #include linux/fs.h @@ -46,10 +47,11 @@ extern struct fileops linuxfileops; static inline struct linux_file * linux_fget(unsigned int fd) { + cap_rights_t rights; struct file *file; - if (fget_unlocked(curthread-td_proc-p_fd, fd, NULL, file, - NULL) != 0) { + if (fget_unlocked(curthread-td_proc-p_fd, fd, + cap_rights_init(rights), file, NULL) != 0) { return (NULL); } return (struct linux_file *)file-f_data; @@ -71,10 +73,11 @@ fput(struct linux_file *filp) static inline void put_unused_fd(unsigned int fd) { + cap_rights_t rights; struct file *file; - if (fget_unlocked(curthread-td_proc-p_fd, fd, NULL, file, - NULL) != 0) { + if (fget_unlocked(curthread-td_proc-p_fd, fd, + cap_rights_init(rights), file, NULL) != 0) { return; } /* @@ -91,10 +94,11 @@ put_unused_fd(unsigned int fd) static inline void fd_install(unsigned int fd, struct linux_file *filp) { + cap_rights_t rights; struct file *file; - if (fget_unlocked(curthread-td_proc-p_fd, fd, NULL, file, - NULL) != 0) { + if (fget_unlocked(curthread-td_proc-p_fd, fd, + cap_rights_init(rights), file, NULL) != 0) { file = NULL; } filp-_file = file; Modified: head/sys/security/audit/audit_arg.c == --- head/sys/security/audit/audit_arg.c Tue Jun 16 09:08:30 2015 (r284442) +++ head/sys/security/audit/audit_arg.c Tue Jun 16 09:52:36 2015 (r284443) @@ -32,6 +32,7 @@ __FBSDID($FreeBSD$); #include sys/param.h #include sys/filedesc.h +#include sys/capsicum.h #include sys/ipc.h #include sys/mount.h #include sys/proc.h @@ -894,6 +895,7 @@ audit_arg_fcntl_rights(uint32_t fcntlrig void audit_sysclose(struct thread *td, int fd) { + cap_rights_t rights;